ACPI/ERST: fix table mapping
authorJan Beulich <jbeulich@suse.com>
Mon, 26 May 2014 10:25:01 +0000 (12:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 May 2014 10:25:01 +0000 (12:25 +0200)
commitfca69b1fc606ece62430076ca4a157e4bed749a8
treea8b05070fd61271634ca5dde0d926c4aff1a9586
parentb327a3f421bb57d262b7d1fb3c43b710852b103b
ACPI/ERST: fix table mapping

acpi_get_table(), when executed before reaching SYS_STATE_active, will
return a mapping valid only until the next invocation of that funciton.
Consequently storing the returned pointer for later use is incorrect.
Copy the logic used in VT-d's DMAR handling.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/acpi/apei/erst.c